package com.crp.unitalinforbaseplat.app.unitalinforbaseplat.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @program: praduationppmsystem
 * @description:Principal 这个类是为了适配shiro权限框架，在底层通过这个类获取用户数据
 * @author: chenzhicai
 * @create: 2018-10-10-17-14
 **/
public class Principal implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long id;
    private String userId;
    private String userName;
    private String compayId;
    private String deptId;
    private String type;
    private String isLeader;
    private String email;
    private String roleName;

    private String phone;

    private Integer sex;

    private Integer age;

    private Integer status;

    private Date createTime;

    private Date updateTime;

    private Date lastLoginTime;



    public Principal() {
    }

    public Principal(Long id, String userId, String userName) {
        this.id = id;
        this.userId = userId;
        this.userName = userName;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return this.userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getCompayId() {
        return this.compayId;
    }

    public void setCompayId(String compayId) {
        this.compayId = compayId;
    }

    public String getDeptId() {
        return this.deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String toString() {
        return String.valueOf(this.id);
    }

    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getIsLeader() {
        return this.isLeader;
    }

    public void setIsLeader(String isLeader) {
        this.isLeader = isLeader;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }
}


    